package com.sdry.system.service;

import com.sdry.system.entity.SysAppMenu;

import java.util.List;

/**
 * @Description app 菜单
 * @Author chenBin
 * @Date 2020-04-07 13:56
 * @Version 1.0
 **/
public interface AppMenuService {

    /**
     * 根据用户ID查询用app 菜单
     * @param userId 用户ID
     * @return List<SysAppMenu>
     */
    List<SysAppMenu> queryAppMenuList(String userId);

    /**
     * 根据用户ID查询用app 父菜单
     * @param roleId 用户ID
     * @return List<SysAppMenu>
     */
    List<SysAppMenu> queryAppMenuWenList(Long roleId);

    /**
     * 根据用户ID查询用app 子菜单
     * @param amId 用户ID
     * @param userId
     * @return List<SysAppMenu>
     */
    List<SysAppMenu> queryAppMenuSonList(String amId, String userId);
}
